public class App {
    public void method() {
        int count = 0;
        synchronized (this) {
            for (int i = 0; i < 10; i++) {
                count++;
            }
        }
        System.out.println(count);
    }
}
